<?php

namespace Emoney\EpayBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Emoney\EpayBundle\Entity\Retreives
 *
 * @ORM\Table(name="retreives")
 * @ORM\Entity
 */
class Retreives
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var integer $userId
     *
     * @ORM\Column(name="userId", type="integer")
     * @ORM\ManyToOne(targetEntity="Emoney\UserBundle\Entity\User")
     * @ORM\JoinColumn(name="userId", referencedColumnName="id")
     */
    private $userId;

    /**
     * @var float $amount
     *
     * @ORM\Column(name="amount", type="float")
     */
    private $amount;

    /**
     * @var datetime $askRdate
     *
     * @ORM\Column(name="ask_rdate", type="datetime")
     */
    private $askRdate;
	
    /**
     * @var datetime $rdate
     *
     * @ORM\Column(name="rdate", type="datetime", nullable=true)
     */
    private $rdate;

	 /**
     * @var smallint $state
     *
     * @ORM\Column(name="state", type="boolean")
     */
    private $state;



    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set userId
     *
     * @param integer $userId
     */
    public function setUserId($userId)
    {
        $this->userId = $userId;
    }

    /**
     * Get userId
     *
     * @return integer 
     */
    public function getUserId()
    {
        return $this->userId;
    }

    /**
     * Set amount
     *
     * @param float $amount
     */
    public function setAmount($amount)
    {
        $this->amount = $amount;
    }

    /**
     * Get amount
     *
     * @return float 
     */
    public function getAmount()
    {
        return $this->amount;
    }


    /**
     * Set rdate
     *
     * @param datetime $rdate
     */
    public function setRdate($rdate)
    {
        $this->rdate = $rdate;
    }

    /**
     * Get rdate
     *
     * @return datetime 
     */
    public function getRdate()
    {
        return $this->rdate;
    }
    /**
     * Set state
     *
     * @param boolean $state
     */
    public function setState($state)
    {
        return $this->state = $state;
    }
	
    /**
     * Get state
     *
     * @return boolean 
     */
    public function getState()
    {
        return $this->state;
    }
	
    /**
     * Set rdate
     *
     * @param datetime $rdate
     */
    public function setAskRdate($askRdate)
    {
        $this->askRdate = $askRdate;
    }
    /**
     * Get ask_rdate
     *
     * @return datetime 
     */
    public function getAskRdate()
    {
        return $this->askRdate;
    }
}